package com.magicsoft.share.adapter.share;

import android.graphics.Paint;
import android.support.annotation.LayoutRes;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.magicsoft.share.R;
import com.magicsoft.share.bean.my.ArticleList;

/**
 * @author lyf
 * @date 2017/10/27/027
 * 搜索结果 不带图片的文章列表
 */

public class ArticleAdapter extends BaseQuickAdapter<ArticleList.ListBean, BaseViewHolder> {

    public ArticleAdapter(@LayoutRes int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, ArticleList.ListBean item) {
        TextView tv_title = helper.getView(R.id.tv_title);
        tv_title.setText(item.getTitle());
        tv_title.getPaint().setFlags(Paint.FAKE_BOLD_TEXT_FLAG);


    }
}
